<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>

<div class="panel-body">
    <div class="table-responsive no-border">
        <div class="datatable-top">
            <div class="pull-left">
                <form:form id="searchForm" modelAttribute="turnInVo"  onsubmit="return loadDivForm('nurse_waitNewInPatientList','searchForm','${ctx}/nurse/wardCirculation/waitWardPatientList');" method="post" class="form-inline">
                    &nbsp;&nbsp;<label>姓名 ：</label><form:input path="name" htmlEscape="false" maxlength="50" class="form-control" />
                    &nbsp;&nbsp;<input type="radio" value="1" name="wardPatient" checked onclick="changeRadios('1','${turnInVo.bedRecId}')"> 待入本病区病人列表<%--<input type="radio" value="2" name="wardPatient" onclick="changeRadios('2','${turnInVo.bedRecId}')">全院待入病区病人列表--%>
                   <form:hidden path="bedRecId"/>
                    <input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/>
                </form:form>
            </div>
        </div>
        <table id="contentTable" class="table table-bordered mg-t datatable">
            <thead>
            <tr>
                <th>住院号</th>
                <th>姓名</th>
                <th>性别</th>
                <th>年龄</th>
                <th>身份证号</th>
                 <th>护理单元</th>
                 <th>科室</th>
            </tr>
            </thead>
            <tbody>
            <c:forEach items="${list}" var="pat">
            <tr onclick="loadFormData('${pat.id}','${turnInVo.bedRecId}')">
                <td>${pat.visitNo}</td>
                <td> ${pat.name}</td>
                <td> ${fns:getDictLabel(pat.sex, 'SEX_DICT', '')}</td>
                <td> ${pat.age}</td>
                <td> ${pat.idNo}</td>
                <td> ${fns:getDeptName(pat.wardCode, '')}</td>
                <td> ${fns:getDeptName(pat.deptStayed, '')}</td>
            </tr>
            </c:forEach>

        </table>
    </div>
</div>
